//
//  ThemeCellReactor.swift
//  WanAndroidLearn
//
//  Created by TRS-Mobile on 2023/11/2.
//

import Foundation
import ReactorKit
import RxCocoa
import RxSwift

class ThemeCellReactor: Reactor {
    
    typealias Action = Never
    
    struct State {
        var imageColor: UIColor?
        var title: String?
    }
    var initialState: State = State()
    
    var themeColor: ColorTheme
    
    init(themeColor: ColorTheme) {
        self.themeColor = themeColor
        initialState.title = themeColor.title
        initialState.imageColor = ThemeType.currentTheme().isDark ? themeColor.colorDark : themeColor.color
    }
}
